package org.example.feign;

import org.example.annotation.Backoff;
import org.example.annotation.FeignRetry;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author WN
 * @date：2024/03/22 15:36
 */
@FeignClient("http://localhost:8081/")
public interface TlogFeignClient {

    @RequestMapping(value = "hi", method = RequestMethod.GET)
    @FeignRetry(maxAttempt = 3000000)
    String sayHello(@RequestParam("name") String name);
}
